package com.software.loginregister.entity.room;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "works_cache")
public class WorksCache {
    @PrimaryKey(autoGenerate = true)
    private Integer id;

    @ColumnInfo(name = "works_id")
    private Integer worksId;

    @ColumnInfo(name = "cache_data")
    private String cacheData;

    @ColumnInfo(name = "timestamp")
    private long timestamp;

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWorksId() {
        return worksId;
    }

    public void setWorksId(Integer worksId) {
        this.worksId = worksId;
    }

    public String getCacheData() {
        return cacheData;
    }

    public void setCacheData(String cacheData) {
        this.cacheData = cacheData;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}
